<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="zh-cn" xmlns：th="http://www.thymeleaf.org" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>预约信息验证编辑</title>
    <link href="admin/bower_components/bootstrap/dist/css/bootstrap.min.css" th:href="@{/admin/bower_components/bootstrap/dist/css/bootstrap.min.css}" rel="stylesheet">
    <link href="admin/plugins/bootstrap-fileinput/css/fileinput.min.css" th:href="@{/admin/plugins/bootstrap-fileinput/css/fileinput.min.css}" rel="stylesheet">
</head>
<body>
<form class="form-horizontal" th:action="@{/admin/editBook }"
      method="post"  style="width: 1200px; margin-top: 20px">

    <input name="id" type="text" th:value="${book!=null?book.id:''}" style="display: none">

    <div class="form-group">
        <label for="InputName" class="col-sm-2 control-label">姓名</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:value="${book!=null?book.customer:'' }"
                   readonly="readonly" id="InputName" name="customer" placeholder="姓名">
            <input type="text" name="userName" style="display: none"
                   th:value="${book!=null?book.userName:'' }">
            <input type="text" name="bookdate" style="display: none" th:value="${#dates.format(book.bookdate,'yyyy-MM-dd HH:mm:ss')}">
        </div>
    </div>

    <div class="form-group">
        <label for="InputUrl" class="col-sm-2 control-label">房间类型</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" th:value="${book!=null?book.type:'' }"
                   readonly="readonly" name="type" placeholder="房间类型">
        </div>
    </div>
    <div class="form-group">
        <label for="inputTarget" class="col-sm-2 control-label">联系电话</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" readonly="readonly"
                   th:value="${book!=null?book.tel:'' }" name="tel" placeholder="联系电话">
        </div>
    </div>
    <div class="form-group">
        <label for="inputStatus" class="col-sm-2 control-label">入住日期</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" readonly="readonly"
                   th:value="${#dates.format(book.startdate,'yyyy-MM-dd')}"
                   name="startdate" placeholder="入住日期">
        </div>
    </div>
    <div class="form-group">
        <label for="inputStatus" class="col-sm-2 control-label">离去日期</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" readonly="readonly"
                   th:value="${#dates.format(book.enddate,'yyyy-MM-dd')}"
                   name="enddate" placeholder="离去日期">
        </div>
    </div>

    <div class="form-group">
        <label for="inputStatus" class="col-sm-2 control-label">价格</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" readonly="readonly"
                   th:value="${book!=null?book.money:'' }" id="InputUrl" name="money" placeholder="价格">
        </div>
    </div>

    <div class="form-group">

        <label for="inputIdNumber" class="col-sm-2 control-label">身份证号</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" readonly="readonly"
                   th:value="${book!=null?book.idnumber:'' }" id="InputIdNumber" name="idnumber" placeholder="身份证号">
        </div>
    </div>

    <div class="form-group" id="roomId">
        <label for="inputStatus" class="col-sm-2 control-label" >房号</label>
        <div class="col-sm-10">
            <select name="roomId" class="form-control">
                <tr th:each="room:${roomcount}">
                    <option name="roomId" th:value="${book!=null?room.roomId:''}" th:text="${room.roomId}"></option>
                </tr>
            </select>
        </div>
    </div>
    <div class="form-group" id="submitBtn">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </div>
</form>
</body>
</html>